import QtQuick 2.3
import QtQuick.Controls 1.2

Rectangle{
    width: 300
    height: 200
    color: "#8016f1cd"
    border.color: "#8040f30e"
    border.width: 5
    radius: 10
    visible: !gLogCatClient.isConnected
    Column{
        anchors.fill: parent
        anchors.margins: 10
        spacing: 5
        TextField {
            id: idhost
            width: parent.width / 2
            height: 20
            anchors.horizontalCenter: parent.horizontalCenter
            text: "127.0.0.1"
             placeholderText: qsTr("host ip")
        }
        TextField {
            id: idport
            width: parent.width / 2
            height: 20
            anchors.horizontalCenter: parent.horizontalCenter
            text: "10000"
             placeholderText: qsTr("host port")
        }
        Button{
            width: parent.width / 2
            anchors.horizontalCenter: parent.horizontalCenter
            text:"start"
            onClicked: {
                gLogCatClient.start(idhost.text, idport.text)
            }
        }
    }

}
